package top.yokey.taobaoshop;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.google.android.material.tabs.TabLayout;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        

        getSupportActionBar().hide();//隐藏掉整个ActionBar
        setContentView(R.layout.activity_main);
        TabLayout tabLayout = findViewById(R.id.tab_layout);
//        tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {
//            @Override
//            public void onTabSelected(TabLayout.Tab tab) {
//                //选中某个tab
//            }
//
//            @Override
//            public void onTabUnselected(TabLayout.Tab tab) {
//                //当tab从选择到未选择
//            }
//
//            @Override
//            public void onTabReselected(TabLayout.Tab tab) {
//                //已经选中tab后的重复点击tab
//            }
//        });
    }


}
